//
//  receiveFirCirNewLength.m
//  tcpoctest
//
//  Created by gump on 5/6/13.
//  Copyright (c) 2013 gump. All rights reserved.
//

#import "receiveFirCirNewLength.h"

#import "FirCirPersonDataSource.h"

#import "sendFirCirGetID.h"

@implementation receiveFirCirNewLength

-(void)processreceive
{
    //返回 74char(1),7char(1)，用户名长度char(1), 用户名char(x)，长度int
    NSString *mail = [logicsb ReadUnencodeString];
    int len = [logicsb ReadIntWithTT:NTT_BIG2SMALL];
    
    if (len > 0) {
        
        [[DataControl shareControl].fcPersonDS SetIDLength:len];
        [[DataControl shareControl].fcPersonDS SetYetLength:0];
        
        
        
                [[netManager sharedNetManager].sendFCGetID SendFCGetID:mail
                                                              StartPos:
                 [[DataControl shareControl].fcPersonDS YetLength]
                                                                EndPos:
                 [[DataControl shareControl].fcPersonDS YetLength] + 1];
                
                
        
        
    
    }
    
    [self ShowLog];
}

@end
